Skip to content

Conversation

@osinjoku
Copy link
Contributor

@osinjoku osinjoku commented Sep 23, 2025

Description

Add more examples in docs (including PowerPoint generation) and allow deploying docs without trying to push to PyPI.

Fixes # N/A.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

Please delete options that are not relevant.

  • I have read the CONTRIBUTING document
  • My code follows the style guidelines of this project
  • I have updated the documentation accordingly

Testing

Tested new examples locally.

Additional Notes

Add any other context about the pull request here.

osinjoku and others added 4 commits September 12, 2025 23:49
* fix types and remove non-existing function

* fix tests

* fix color band range

* increment patch number

* fix range and tests

* changelog

* bring back function

* more tests

* missing include

* typo

* better docstrings

* correctness

* ws
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request enhances the documentation with comprehensive Moldflow API examples and adds flexibility to the publishing workflow. The changes provide practical code examples for advanced Moldflow operations while allowing documentation-only releases.

  • Added extensive advanced examples covering data transformation, diagnostics, boundary conditions, and PowerPoint report generation
  • Modified the GitHub Actions workflow to support documentation-only publishing
  • Enhanced the documentation with real-world use cases and complex API interactions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/source/readme.rst Added comprehensive advanced examples including derived results, vector operations, coolant endpoints, and PowerPoint report generation
.github/workflows/publish.yml Added docs_only input parameter and conditional logic to skip package publishing steps when only updating documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@osinjoku osinjoku changed the title Feature/better examples Improve examples in docs Sep 23, 2025
@osinjoku osinjoku marked this pull request as ready for review October 2, 2025 15:10
@osinjoku osinjoku requested a review from LiawChungYao October 2, 2025 15:10
@osinjoku osinjoku changed the base branch from release/26 to main October 7, 2025 14:40
@osinjoku osinjoku self-assigned this Oct 9, 2025
Comment on lines 1062 to 1065
# If capture produced an unexpectedly small file, fallback attempt with result=False
try:
if os.path.getsize(tmp.name) < 12000 and plot is not None:
# Fallback: capture without result overlay in case the plot layer isn't rendering
Copy link
Collaborator

@LiawChungYao LiawChungYao Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these comments verified because the people who are analyzing the sample will be carefully going through these

@osinjoku osinjoku merged commit 6fa7406 into main Oct 9, 2025
19 checks passed
@osinjoku osinjoku deleted the feature/better-examples branch October 9, 2025 01:59
osinjoku added a commit that referenced this pull request Oct 9, 2025
* Fix return types and color band range (#5)

* fix types and remove non-existing function

* fix tests

* fix color band range

* increment patch number

* fix range and tests

* changelog

* bring back function

* more tests

* missing include

* typo

* better docstrings

* correctness

* ws

* docs only publish

* more examples

* point to pypi (#3)

* remove multi-statement lines

* remove vb references

* better explanation

* simpler

* cleanup and make sure the scripts work

* Update readme.rst

* remove unnecessary fallback
osinjoku added a commit that referenced this pull request Oct 10, 2025
* Improve examples in docs (#16)

* Fix return types and color band range (#5)

* fix types and remove non-existing function

* fix tests

* fix color band range

* increment patch number

* fix range and tests

* changelog

* bring back function

* more tests

* missing include

* typo

* better docstrings

* correctness

* ws

* docs only publish

* more examples

* point to pypi (#3)

* remove multi-statement lines

* remove vb references

* better explanation

* simpler

* cleanup and make sure the scripts work

* Update readme.rst

* remove unnecessary fallback

* Add convenience message boxes and input dialogs via Win32 (#15)

* progress

* order

* allow ok for localisation

* add integration test

* format

* lint

* fix test

* working

* lint

* i18n

* format

* lint

* fnish lint

* review

* placement

* omit test coverage for win32 ui heavy class

* add to changelog

* fix coverage

* more friendly win32 error handling

* Update src/moldflow/message_box.py

Co-authored-by: Sankalp Shrivastava <[email protected]>

---------

Co-authored-by: Sankalp Shrivastava <[email protected]>

* Improve MessageBox documentation (#21)

* progress

* order

* allow ok for localisation

* add integration test

* format

* lint

* fix test

* working

* lint

* i18n

* format

* lint

* fnish lint

* review

* placement

* omit test coverage for win32 ui heavy class

* add to changelog

* fix coverage

* more friendly win32 error handling

* Update src/moldflow/message_box.py

Co-authored-by: Sankalp Shrivastava <[email protected]>

* better doc

---------

Co-authored-by: Sankalp Shrivastava <[email protected]>

* bump version

* update changelog

---------

Co-authored-by: Sankalp Shrivastava <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants